    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            margin: 0;
            background-color: #f5f5f5;
            padding: 20px;
        }
        .calendar-container {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            padding: 20px;
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
        }
        .calendar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        .month-nav {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .nav-btn {
            background: none;
            border: 1px solid #ddd;
            padding: 5px 10px;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        .nav-btn:hover {
            background-color: #f0f0f0;
        }
        .current-month {
            font-size: 18px;
            font-weight: bold;
        }
        .weekdays {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 2px;
            margin-bottom: 5px;
        }
        .weekday {
            text-align: center;
            padding: 10px;
            font-weight: bold;
            color: #666;
            background-color: #f9f9f9;
            border-radius: 4px;
        }
        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 2px;
            position: relative;
        }
        .day {
            min-height: 100px;
            padding: 5px;
            border: 1px solid #e0e0e0;
            border-radius: 4px;
            position: relative;
        }
        .day.other-month {
            background-color: #f9f9f9;
            color: #ccc;
            opacity: 0.6;
        }
        .day.today {
            background-color: #fff9e6;
            
        }
        .day-number {
            position: absolute;
            top: 5px;
            right: 5px;
            font-size: 12px;
            font-weight: bold;
        }
        .day-content {
            margin-top: 20px;
            padding-bottom: 5px;
            min-height: 40px;
            position: relative;
        }
        .event {
            padding: 3px 5px;
            margin-bottom: 2px;
            border-radius: 2px;
            font-size: 11px;
            color: white;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            cursor: pointer;
            box-sizing: border-box;
            z-index: 5; /* 降低单日事件层级 */
            //position: relative;
            position: absolute;
            height: 18px;
            width: 100%;
  
        }
        .multi-day-event {
            color: white;
            padding: 3px 5px;
            border-radius: 2px;
            font-size: 11px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            pointer-events: auto;
            cursor: pointer;
            box-sizing: border-box;
            position: absolute;
            height: 18px;
            z-index: 4; /* 多日事件层级最低 */
        }
        .multi-day-event.start {
            border-top-left-radius: 4px;
            border-bottom-left-radius: 4px;
        }
        .multi-day-event.middle {
            border-radius: 0;
        }
        .multi-day-event.end {
            border-top-right-radius: 4px;
            border-bottom-right-radius: 4px;
        }
        .event-overlay {
            z-index: 3; /* 交互元素层级最高 */
        }
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            justify-content: center;
            align-items: center;
            z-index: 100;
        }
        .modal-content {
            background-color: white;
            padding: 20px;
            border-radius: 8px;
            width: 300px;
        }
        .event-form {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 20px;
        }
        .form-group {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }
        .form-control {
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }
        .btn {
            padding: 8px 16px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }
        .btn-primary {
            background-color: #3498db;
            color: white;
        }
        .event-list {
            max-height: 200px;
            overflow-y: auto;
        }
        .event-item {
            padding: 8px;
            background-color: #f0f0f0;
            margin-bottom: 5px;
            border-radius: 4px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .delete-btn {
            color: #e74c3c;
            background: none;
            border: none;
            cursor: pointer;
        }
        .today-date {
            background-color: #3498db;
            color: white;
            padding: 4px 8px;
            border-radius: 3px;
            font-size: 14px;
        }
        .tooltip {
            position: fixed; /* 改为fixed定位，相对于视口 */
            background-color: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 8px 12px;
            border-radius: 4px;
            font-size: 12px;
            z-index: 1000; /* 提高层级避免被遮挡 */
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.2s;
            width: 200px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            transform: translateY(-50%); /* 垂直居中对齐鼠标 */
        }

        .tooltip-title {
            font-weight: bold;
            margin-bottom: 4px;
            padding-bottom: 4px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        }

        .tooltip-time {
            margin-top: 4px;
            font-size: 11px;
            color: #ddd;
        }
    </style>